package org.bdware.irs.backend.dto;

public class Crypto {
    String source;
    String encryptedData;
    String publicKey;
    String privateKey;
    //type为0表示加密，type为1标识解密
    int type;

    public Crypto() {
    }

    public Crypto(String source, String encryptedData, String publicKey, String privateKey) {
        this.source = source;
        this.encryptedData = encryptedData;
        this.publicKey = publicKey;
        this.privateKey = privateKey;
    }

    public Crypto(String source, String encryptedData, String publicKey, String privateKey, int type) {
        this.source = source;
        this.encryptedData = encryptedData;
        this.publicKey = publicKey;
        this.privateKey = privateKey;
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getEncryptedData() {
        return encryptedData;
    }

    public void setEncryptedData(String encryptedData) {
        this.encryptedData = encryptedData;
    }

    public String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }
}
